

package pacman.skills;


/**
 * This class represents pacman's hability to teleport to the nearest ghost and
 *  attack it
 * @author Leonardo
 */
public class TeleNear extends Skill{

    /**
     * Set the inicial parameters of skill
     * Set unavailable at the begining of the game
     */
    public TeleNear(){
        this.mana = 2;
        this.hit = 1;
        this.tick = 3;
        this.isActive = false;
        this.spriteIndex = 0;
    }

    
    /**
     * Activation of skill
     * @param cost Cost of skill
     * @return cost
     */
    public int Activate(int cost){
        if(cost == this.cost)
           this.isActive = true;
        return this.cost;
    }

   
}
